using System;
using Microsoft.Ccr.Core;

namespace Bittorrent.Agents.Messages
{
    internal class WritePacket
    {
        public WritePacket(byte[] payload, PortSet<SuccessResult, Exception> resultPort) {
            Payload = payload;
            ResultPort = resultPort;
        }

        public PortSet<SuccessResult, Exception> ResultPort { get; set; }

        public byte[] Payload { get; set; }
    }
}
